
//
// 120312 - AH - (Garage) Created.
// 120313 - AH - Made Serializable.
//

package org.soekrat.server.serialization;

import java.io.Serializable;

/**
 * <p>
 *   Description of a Soekrate visitor end user's account.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC) 
 */
public final class VisitorAccountSerializable implements Serializable 
{
  private static final long serialVersionUID=6837179932893961008L;
  
  private final String visitor;
  
  /**
   * <p>
   *   Constructor.
   * </p>
   * @param visitor Name that identifies end user.
   */
  public VisitorAccountSerializable(String visitor)
  {
    if (visitor==null)
    {
      throw new NullPointerException("visitor");
    }
    
    this.visitor=visitor;
  }
  
  /**
   * <p>
   *   Gets name that identifies visitor.
   * </p>
   * @return Name.-
   */
  public String visitor(){ return visitor; }
  
}
